﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using McvParis_vert.Application.Models;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace McvParis_vert.Application
{
    public class AppContext : DbContext
    {
        public AppContext() : base("AppContext")
        {
        }

        public DbSet<Utilisateur> Utilisateurs { get; set; }
        public DbSet<Itineraire> Itineraires { get; set; }
        public DbSet<Evenement> Evenements { get; set; }
        public DbSet<Critere> Criteres { get; set; }
        public DbSet<Illustration> Illustrations { get; set; }
        public DbSet<Coordonnee> Coordonnees { get; set; }
        public DbSet<Thematique> Thematiques { get; set; }
        public DbSet<Commentaire> Commentaires { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}